package cn.ranyue.org.service.impl;

import cn.ranyue.org.domain.Shop;
import cn.ranyue.org.mapper.ShopMapper;
import cn.ranyue.org.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ShopServiceImpl implements IShopService {
    @Autowired
    private ShopMapper shopMapper;
    @Override
    public void add(Shop shop) {
    shopMapper.add(shop);
    }

    @Override
    public void delete(Long id) {
    shopMapper.delete(id);
    }

    @Override
    public void update(Shop shop) {
    shopMapper.update(shop);
    }

    @Override
    public Shop listOne(Long id) {
        return shopMapper.listOne(id);
    }

    @Override
    public List<Shop> listAll() {
        return shopMapper.listAll();
    }
}
